<?php

class SmartReportForm extends BaseForm {

    public function configure() {
        $this->mergeForm(new ProgramFormFilter());
        $this->mergeForm(new TeacherFormFilter());
        
        unset(
                $this['start_date']
                , $this['end_date']
                , $this['name']
                , $this['duration_hours']
                , $this['duration_days']
                , $this['external_trainer']
                , $this['is_approval_sent']
                , $this['training_timing_type']
                , $this['target_number'] // check
                , $this['notes']
                , $this['academic_year_id']
                , $this['semester']
                , $this['created_at']
                , $this['updated_at']
                , $this['created_by_user_id']
                , $this['updated_by_user_id']
                , $this['teacher_list']
                // // // // // // // // // // // 
                , $this['is_trainer']
                , $this['q_id']
                , $this['sub_id']
                , $this['f_name']
                , $this['s_name']
                , $this['t_name']
                , $this['l_name']
                , $this['nat_id']
                , $this['q_date']
                , $this['university']
                , $this['special_id']
                , $this['pre_school']
                , $this['work_date']
                , $this['birth_date']
                , $this['level']
                , $this['degree']
                , $this['emp_status']
                , $this['mobile']
                , $this['phone']
                , $this['is_trainer']
                , $this['is_hanged']
                , $this['hange_status']
                , $this['intg_identity2']
                , $this['program_list']
                , $this['job_id']
        );
        
        $this->widgetSchema['program_code']->setOption('with_empty', false);
        $this->widgetSchema['assinger_number']->setOption('with_empty', false);
        $this->widgetSchema['intg_identity'] = new sfWidgetFormInput(); // for teacher
        $this->widgetSchema['last_login'] = new sfWidgetFormDate();
        $choices = array(
            'Program' => 'Programs'
            , 'School' => 'Schools'
            , 'Trainer' => 'Trainers'
            , 'Teacher' => 'Teachers'
        );
        $this->widgetSchema['output'] = new sfWidgetFormChoice(array('choices' => $choices, 'expanded' => true, 'default' => 'Program'));
        $this->widgetSchema['draw_chart']= new sfWidgetFormInputCheckbox(array(),array('disabled'=>'disabled'));
    }

}